﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MVP_app_easy
{
    public partial class Form1 : Form, IView
    {
        public Form1()
        {
            InitializeComponent();
        }

        public string TbText
        {
            get { return textBox1.Text; }
            set { textBox1.Text = value; }
        }

        public event EventHandler btnNext_click;
        public event EventHandler btnPrevious_click;
        public event EventHandler btnReset_click;

        protected void OnBtnNext_Click(object sender, EventArgs e)
        {
            if (btnNext_click != null)
                btnNext_click(this, EventArgs.Empty);
        }

        protected void OnBtnPrevious_Click(object sender, EventArgs e)
        {
            if (btnPrevious_click != null)
                btnPrevious_click(this, EventArgs.Empty);
        }

        protected void OnBtnReset_Click(object sender, EventArgs e)
        {
            if (btnReset_click != null)
            {
                btnReset_click(this, EventArgs.Empty);
            }
        }

        public void Show()
        {
            Application.Run(this);
        }
    }
}
